package com.departmentstore.config;

import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Info;
import io.swagger.v3.oas.models.info.Contact;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class OpenApiConfig {

    @Bean
    public OpenAPI departmentStoreOpenAPI() {
        return new OpenAPI()
                .info(new Info()
                        .title("百货商店管理系统 API")
                        .description("百货商店管理系统的 RESTful API 文档")
                        .version("v1.0.0")
                        .contact(new Contact()
                                .name("梁佳伟")
                                .email("jwliang666@qq.com")));
    }
} 